<template>
	<view class="container">
		
		<!-- 卡片列表,展示反馈进度 -->
		<u-card padding="13" v-for="item in cardList" :key="item._id"   title="反馈进度"
			sub-title="">
			<view class="" slot="body">
				<u-row gutter="0">
					<u-col offset="1" span="3">
						<text style="color:#333">姓名</text>
					</u-col>
					<u-col span="4">
						{{yibanInfo.user.info.yb_username}}
					</u-col>
		
				</u-row>
				<u-row gutter="0">
					<u-col offset="1" span="3">
						<text style="color:#333">反馈类型</text>
					</u-col>
		
					<u-col span="5">
						{{item.type}}
					</u-col>
		
				</u-row>
		
				<u-row gutter="0">
					<u-col offset="1" span="3">
						<text style="color:#333">反馈标题</text>
					</u-col>
		
					<u-col span="5">
						111
					</u-col>
		
				</u-row>
		
				<u-row gutter="0">
					<u-col offset="1" span="3">
						<text style="color:#333">正文</text>
					</u-col>
		
					<u-col span="5">
						<text style="color: #2979ff;">查看详情></text>
					</u-col>
		
				</u-row>
				<u-row gutter="0">
					<u-col offset="1" span="3">
						<text style="color:#333">申请时间</text>
					</u-col>
				
					<u-col span="5">
						{{item._add_time_str}}
					</u-col>
				
				</u-row>
		
				<u-row gutter="0">
					<u-col offset="1" span="3" style="margin-top: 20rpx;">
						
					</u-col>
				</u-row>
				<u-steps  :list="numList" :current="1"></u-steps>
			</view>
		
		</u-card>
	</view>
</template>

<script>
	var that; // 当前页面对象
	var vk; // vk依赖
	export default {
		data () {
			return {
				//卡片列表
				cardList: [],
				numList: [{
					name: '提交'
				}, {
					name: '待处理'
				}, {
					name: '已答复'
				}]
			}
		},
		onLoad(options) {
			// vk框架初始化
			that = this;
			vk = that.vk;
			that.options = options;
			
			let yb_userid = vk.getStorageSync('yibanInfo').user.info.yb_userid;
			vk.callFunction({
				url: 'client/feedback/pub/getList',
				title:'请求中...',
				data:{
					yb_userid
				},
				success:(data)=>{
					this.cardList = data.rows
				}
			});
		},
		methods:{
			
		},
		computed:{
			yibanInfo(){
				let yibanInfo = vk.getStorageSync('yibanInfo')
				console.log(yibanInfo)
				return yibanInfo
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wrap {
		padding: 24rpx;
	}
	
	.u-row {
		margin: 10rpx 0;
	}
	.container {
		
	}
</style>